-
-
Notifications
You must be signed in to change notification settings - Fork 169
doc/uefi: improve Protocol documentation #1612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
3213ebd
to
999927a
Compare
//! another. | ||
//! | ||
//! Implementation-wise, a protocol is a `C` struct holding function pointers | ||
//! and/or data. Please note that some protocols may use [`core::ptr::null`] as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicholasbishop I'd like to add more about protocol interfaces being null; why can they be null and when is this valid? Can you help?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the issue where it was first brought to our attention that the interface could be null: #859
So LoadedImageDevicePath
on an image created with a null device path is one way, but probably not the only way to end up with a null interface.
16cd39b
to
5149e63
Compare
Now each struct's documentation begins with "$ProtocolName [`Protocol`]". This way, readers quickly can figure out what Protocols are in general.
5149e63
to
e2e7577
Compare
The idea is that people should not always read the uefi-raw doc in any case. Therefore, a briefly simplified version of the uefi-raw doc is now also in uefi. See #1641 (comment) for a discussion.
Improve Protocol documentation in general. The idea here is to centralize all documentation in
uefi-raw
and then forward to it from UEFI.Partially covers #1639
Checklist